home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-03-16 | 3.6 KB | 92 lines | [TEXT/ToyS] |
- tell application "JMP Demo"
- demo "Begin short test of JMP" wait 1
- set window position to {50, 50}
-
- open table ":SAMPLE DATA demo:BIG CLASS (general)"
- set name of last table to "class"
- set labeled of column "Name" of table "class" to true
-
- --Distribution of Y--
- analyze distribution for {"Sex", "Age", "Height", "Weight"} from table "class"
- set zoomed of distribution 1 to true
- analyze distribution 1 without text report, outlier box plot and mosaic plot
- analyze distribution 1 with normal curve
- set scroll of distribution 1 to {0, 0}
- set zoomed of distribution 1 to true
- set position of last distribution to {30, 260}
-
- --Fit Y by X, continuous by continuous--
- analyze fit for "Height" by "Weight" from table "class"
- set zoomed of last fit to true
- set position of last fit to {400, 40}
-
- set selected of rows of table "class" whose column "Sex" is "F" to true
- set marker of rows of table "class" whose column "Sex" is "F" to xMark
- set selected of rows of table "class" whose column "Sex" is "F" to false
-
- set selected of rows of table "class" whose column "Sex" is "M" to true
- set marker of rows of table "class" whose column "Sex" is "M" to plusMark
- set selected of rows of table "class" whose column "Sex" is "M" to false
-
- set color of rows of table "class" whose column "Age" < 13 to blue
- set color of rows of table "class" whose column "Age" = 13 to green
- set color of rows of table "class" whose column "Age" > 13 to red
- set selected of rows of table "class" whose column "Age" < 13 to true
- set selected of rows of table "class" whose column "Age" = 13 to true
- set selected of rows of table "class" whose column "Age" > 13 to true
-
- set selected of every row of table "class" to false
-
-
- analyze fit 1 with line fit
- analyze fit 1 poly fit 4
- analyze fit 1 spline fit 10
- analyze fit 1 density ellipse 0.5 with reveal
- set revealed of report "Smoothing Spline Fit, lambda=10" of fit 1 to true
- set revealed of report "Bivariate" of fit 1 to true
- repeat with i from 30 to 700 by 40
- set scroll of fit 1 to {0, i}
- end repeat
- close fit 1 saving no
-
- summarize table "class" by {"Age", "Sex"} mean {"Height", "Weight"}
- set name of last table to "classChart"
- graph chart for "Mean(Height)" by {"Sex", "Age"} from table "classChart"
- graph chart 1 orientation horizontal
- graph chart 1 orientation vertical
- graph chart 1 orientation pie
- graph chart 1 orientation vertical type {needle}
- graph chart 1 type {line}
- graph chart 1 type {bar}
- graph chart 1 with stack
- graph chart 1 without stack
- graph chart 1 with pattern
- graph chart 1 without pattern
- close chart 1 saving no
- close table "classChart" saving no
-
- graph spinning plot for {"Age", "Height", "Weight"} from table "class"
- graph last spinning plot rotate {3, 0, 0, 100}
- set color of rows of table "class" whose column "Age" > 13 to yellow
- graph last spinning plot rotate {0, 3, 0, 100}
- set color of rows of table "class" whose column "Age" < 13 to cyan
- graph last spinning plot rotate {0, 0, 3, 100}
- graph last spinning plot rotate {6, 5, 3, 100}
- graph last spinning plot rotate {12, 6, 0, 100}
- graph last spinning plot rotate {2, 3, 0, 100}
- graph last spinning plot rotate {2, 3, 0, 100} with box
- graph last spinning plot without box
- repeat with i from 1 to 4
- graph last spinning plot rotate {0, 5, 0, 20}
- graph last spinning plot rotate {0, -5, 0, 20}
- end repeat
- repeat with i from 1 to 4
- graph last spinning plot rotate {5, 0, 0, 20}
- graph last spinning plot rotate {-5, 0, 0, 20}
- end repeat
- close last spinning plot saving no
-
- close last distribution
- close table "class" saving no
- demo "End of Test."
- end tell